package com.avic.system.service.impl;

import com.avic.system.dal.mapper.LoginLogMapper;
import com.avic.system.dal.mapper.MenuPermissionMapper;
import com.avic.system.dal.mapper.RolePermissionMapper;
import com.avic.system.dal.mapper.SystemLogMapper;
import com.avic.system.dal.mapper.SystemMenuMapper;
import com.avic.system.dal.mapper.SystemPermissionMapper;
import com.avic.system.dal.mapper.SystemRoleMapper;
import com.avic.system.dal.mapper.SystemUserMapper;
import com.avic.system.dal.mapper.UserMenuPermissionMapper;
import com.avic.system.dal.mapper.UserRoleMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 抽象service基类
 *
 * @author: huangsheng
 * @date: 2017/10/19 上午11:04
 */
public abstract class SystemAbstractServiceImpl {

    /**
     * 系统日志对象
     */
    protected final Logger logger = LoggerFactory.getLogger(getClass());

    /**
     * 系统用户mapper
     */
    @Autowired
    protected SystemUserMapper systemUserMapper;

    /**
     * 系统菜单mapper
     */
    @Autowired
    protected SystemMenuMapper systemMenuMapper;

    /**
     * 系统角色mapper
     */
    @Autowired
    protected SystemRoleMapper systemRoleMapper;

    /**
     * 系统权限mapper
     */
    @Autowired
    protected SystemPermissionMapper systemPermissionMapper;

    /**
     * 菜单权限mapper
     */
    @Autowired
    protected MenuPermissionMapper menuPermissionMapper;

    /**
     * 角色权限mapper
     */
    @Autowired
    protected RolePermissionMapper rolePermissionMapper;

    /**
     * 用户角色mapper
     */
    @Autowired
    protected UserRoleMapper userRoleMapper;

    /**
     * 登入日志
     */
    @Autowired
    protected LoginLogMapper loginLogMapper;

    /**
     * 用户菜单角色mapper
     */
    @Autowired
    protected UserMenuPermissionMapper userMenuPermissionMapper;

    /**
     * 系统日志
     */
    @Autowired
    protected SystemLogMapper systemLogMapper;

}
